using VCards.Helpers;
using VCards.Models;
using VCards.Serializer;

namespace VCards.Processors;

public static class FormattedNameProcessor
{
    public static string Serialize(VCard vcard)
    {
        return DefaultSerializer.GetVCardString("FN", vcard.FormattedName, true, vcard.Version);
    }

    public static void Parse(Token token, ref VCard vcard)
    {
        vcard.FormattedName =  token.Values[0];
    }
}